import { HTTP } from '../utils/http.js'

class Classdetails extends HTTP {

    // 在线课堂列表
    classroom_detail(objs) {
        return this.request({
        url: '/online_classroom/classroom_detail',
        method: 'POST',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }
    // 视频播放
    watch_video(objs) {
        return this.request({
        url: '/online_classroom/watch_video',
        method: 'POST',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }
    // 课堂详情视频列表
    online_video_list(objs) {
        return this.request({
        url: '/online_classroom/online_video_list',
        method: 'POST',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }
    //同步视频进度
    sync_video_progress(objs) {
        return this.request({
        url: '/online_classroom/sync_video_progress',
        method: 'POST',
        header: {
        'content-type': 'application/x-www-form-urlencoded'
        },
        data: objs
        })
    }

}

export { Classdetails }